#!/bin/bash

# echo "=========="
# a=1
# echo "打印变量值"
# echo "=========="
# echo $a
# echo "=========="
# echo "打印拼接的变量值"
# echo "=========="
# echo ${a}_1

# echo "=========="
# echo "if判断"
# echo "=========="
# i=1
# if [[ i<i+1 ]]; then
# 	echo $i
# fi

# echo "=========="
# echo "for循环"
# echo "=========="
# for (( i = 0; i < 10; i++ )); do
# 	echo $i
# done

# echo "=========="
# echo "for 循环对比数组"
# echo "=========="
# array=(1 3 5 7 9)
# for (( i = 0; i < ${#array[@]} ; i++ )); do
# 	echo $i
# done

# echo "=========="
# echo "for in循环"
# echo "=========="
# array=(1 3 5 7 9)
# for i in ${array[@]} ; do
# 	echo $i
# done

# echo "=========="
# echo "while 循环"
# echo "=========="
# i=0
# while [[ $i -lt 5 ]]; do
# 	echo $i
# 	((i=i+1))
# done

# echo "=========="
# echo "while 逐行遍历文件内容"
# echo "=========="
# while read f; do
# 	echo $f
# done < whileFile

# echo "=========="
# echo "for循环嵌套if判断"
# echo "=========="
# for i in *; do
# 	echo $i
# -d 文件目录为真
# 	if [[ -d $i ]]; then
# 		break
# 	fi
# done

# for i in *; do
# 	echo $i
# 	# -f 文件为正规文件为真
# 	if [[ -f $i ]]; then
# 		echo $i is file
# 		# break
# 	else continue
# 	fi
# done

# echo "123|456|789" | awk -F '|' '{print $0,$1}'
echo "123|456|789" | sed 's/|/+/g'













